package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojo.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author by jojo
 * @Date 2022/3/1
 * @Description
 */
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    /**
     * 保存文章和素材的关联关系
     * @param ids
     * @param id
     * @param type
     */
    void saveRelations(@Param("ids") List<Integer> ids,
                       @Param("id") Integer id,
                       @Param("type") Short type);
}
